/******************************************************************************************
 
Made by www.Flashphoner.com, all rights reserved.
These sources can only be used for working with Flashphoner server.
If you want use this to create your own application (separate from Flashphoner server) 
please contact support@flashphoner.com 

******************************************************************************************/
package com.flashphoner.click2call
{
	import com.flashphoner.api.Call;
	import com.flashphoner.api.Flash_API;
	import com.flashphoner.click2call.views.MicrophoneSettingsView;
	import com.flashphoner.click2call.views.PhoneButton;
	import com.flashphoner.click2call.views.VersionView;
	
	/**
	 * Data of click2call widget
	 **/
	public class DataClick2Call
	{
		private static var data:DataClick2Call;
		
		/** 
		 * Get instance of a singelton
		 **/
		public static function getInstance():DataClick2Call{
			if (data == null){
				data = new DataClick2Call();
			}
			return data;
		}
		/**
		 * flash_API used for click2call widget
		 **/
		public var flash_API:Flash_API = new Flash_API();
		
		/**
		 * Controller of events
		 **/
		public var viewController:ViewControllerClick2Call = new ViewControllerClick2Call();
		
		/**
		 * Object of view of microphone settings
		 **/
		public var microphoneSettingsView:MicrophoneSettingsView = new MicrophoneSettingsView();
		
		/**
		 * Button to used call and hangup commands
		 **/
		public var phoneButton:PhoneButton;
	}
}